<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class c_index extends CI_Controller {

	function __construct(){
		parent::__construct();	
		$this->load->model('m_entry');
		checkLogin();
	}
	
	function index(){
		$data_entry['data_owner'] = $this->m_entry->getOwner("combo");
		$data_entry['data_cabang'] = $this->m_entry->getCabang("combo");
		$data_entry['data_kondisi'] = $this->m_entry->getKondisi("combo");
		$data_entry['data_pic'] = $this->m_entry->getPic("combo");
		$data['entry'] = $this->load->view('v_entry',$data_entry,true);
		$this->load->view('template/v_main',$data);
	}

}